import request from '@/utils/request'

// 获取台号列表
export const getStationList = (data) => {
  return request({
    url: '/roomNumber/list',
    method: 'get',
    params:data
  })
}

// 保存台号管理
export const addStation = (data) => {
  return request({
    url: '/roomNumber/edit',
    method: 'post',
    data: data
  })
}

// 删除台号管理
export const deleteStation = (id) => {
  return request({
    url: '/roomNumber/'+id,
    method: 'delete'
  })
}

// 修改台号管理
export const editStation = (data) => {
  return request({
    url: '/roomNumber/edit',
    method: 'put',
    data: data
  })
}

// 获取台号管理详情
export const getStationDetail = (id) => {
  return request({
    url: '/roomNumber/'+id,
    method: 'get'
  })
}

// 生成台号二维码
export const createQrCode = (data) => {
  return request({
    url: '/roomNumber/createQrCode',
    method: 'post',
    data: data
  })
}